//-----------------------------------------------------------
//
//-----------------------------------------------------------
class ReservePlayerReplicationInfo extends SRPlayerReplicationInfo;

var bool bPlayerPresent;

var int IdleTime;

replication
{
	reliable if ( Role == Role_Authority )
		bPlayerPresent,
		IdleTime;
}

simulated event PostNetBeginPlay();
simulated event PostNetReceive();
simulated function Destroyed();
function SetCharacterVoice(string S);
function SetCharacterName(string S);

simulated function bool NeedNetNotify()
{
	return false;
}

function Timer()
{
	SetTimer(0.5 + FRand(), false);
	if ( BoundPRI == none || BoundPRI.Controller == none )
	{
		bPlayerPresent = false;
	}
	else
	{
		bPlayerPresent = true;
		SaveRepInfo();
	}
}

function RestoreRepInfo();

function SaveRepInfo()
{
	TakeRepInfo(BoundPRI);
}

simulated function Tick(float Delta)
{
	Super(KFPlayerReplicationInfo).Tick(Delta);
}

defaultproperties
{
	bAllowReplication = false
	bOriginal = false
	bPlayerPresent = false
	bOnlySpectator = true
}
